﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BoxScore.Model;

namespace BoxScore.torneo
{
    public partial class Agregar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            BoxScoreBD bd = new BoxScoreBD();
            int idliga = int.Parse(Request["id"]);
            bd.AgregarTorneo(idliga, nameTextBox.Text, descriptionTextBox.Text, (TextBox1.Text), (TextBox2.Text), awardTextBox.Text);
            Response.Redirect("~/liga/detalle.aspx?id=" + idliga);
        }
    }
}
